/**
 * 
 */
define([ 'knockout', 'jquery', 'formview', 'fileinput' ], function(ko, $) {
	return {
		fnCloseDlg : function() {
			$('#attachemntModal').on('hidden.bs.modal', function() {
				$('#saveBtn').show();
			}).modal('hide');
		},
		fnUpload : function() {
			var formview = require('formview');
			if (!formview.isUploaded() && formview.isSelectFiles()) {
				$('#files').fileinput('upload');
			}
		}
	}
});